import Person from './Person';

class Waiter extends Person {
    private department: string;

    constructor(name: string, department: string){
        super(name);
        this.department = department
    }

    public getElevatorPicth(){
        console.log(`Hello, my name is ${this.name} and I work in ${this.department}`)
        return `Hello, my name is ${this.name} and I work in ${this.department}`
    }
}

export default Waiter;
